package com.charwayh.service.impl;

import com.charwayh.service.AsyncHelloService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author charwayH
 */
@Service
public class AsyncHelloServiceImpl implements AsyncHelloService {
    @Override
    public String asyncSayHello(String name, int timeToWait) {

        try {
            Thread.sleep(timeToWait);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello:" + name;
    }
}
